package com.aqie.room.repository;

import com.aqie.room.entity.Role;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface RoleRepository extends CrudRepository<Role, Long> {
    // 通过user_id 查询roles 信息
    List<Role> findRolesByUserId(Long userId);
}
